<!DOCTYPE html>
<html class="x-admin-sm">

{include file='public/header'}

<body>
    <div class="x-body">
        <form class="layui-form" lay-filter="formAjax">
            <div class="layui-form-item">
                <label class="layui-form-label">
                    <span class="x-red">*</span>名称
                </label>
                <div class="layui-input-inline">
                    <input type="text" name="name" id="name" required="required" lay-verify="required" autocomplete="off" class="layui-input" value="">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">
                    <span class="x-red">*</span>排序
                </label>
                <div class="layui-input-inline">
                    <input type="text" name="sort" id="sort" required="required" lay-verify="required" autocomplete="off" class="layui-input" placeholder="数字越高,出现越前面" value="">
                </div>
            </div>
            <input type="hidden" name="id" id="id" autocomplete="off" class="layui-input" value="">
            <button id="submitData" class="layui-btn" lay-submit lay-filter="submitData" style="display: none;" />
        </form>
    </div>
    <script>
        let params = {
            addUrl: '/admin/type/add',
            editUrl: '/admin/type/edit',
            detailUrl: '/admin/type/detail',
        }
        form_ajax(params)
    </script>

</body>

</html>